package usb;

import java.util.Scanner;

public class Test02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("查找数据是否存在");
        System.out.println("输入需查找的数据");
        int a = sc.nextInt();
        int[] arr = new int[]{2,55,6,48,96,7,58,99,50};
        boolean flag = false;
        for(int i : arr){
            if(a==i){
                flag=true;
            }
        }
        if(flag){
            System.out.println("存在");
        }else {
            System.out.println("不存在");
        }
    }
}
